package com.example.finger.socket;

import java.io.IOException;

/**
 * Created by LYX on 2018/11/19.
 */

public class SoketUploadData {
    public static void upload(final byte[] data){
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    ThreadReadWriterIOSocket.out.write(data);
                    ThreadReadWriterIOSocket.out.flush();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }).start();
    }
}
